@import 'reset';
@import 'variable';
body {
    background-color: $color2;
    font-size: 14px;
    font-family: 'microsoft yahei';
    overflow-x: hidden;
    color: #fff;
}

.clearfix {
    *zoom: 1;
    &:before,
    &:after {
        content: " ";
        display: table;
    }
    &:after {
        clear: both;
    }
}

.text-center {
    text-align: center;
}

a {
    color: #fff;
    :hover {
        color: #ddd;
    }
}

.container {
    position: relative;
    margin: 0 auto;
    width: 1200px;
}

.btn {
    display: inline-block;
    background-color: $color3;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    &:hover {
        background-color: darken($color3, 5);
    }
}

.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    .content {
        position: relative;
        left: 50%;
        margin-left: -960px;
        width: 1920px;
        height: 700px;
        overflow: hidden;
    }
}

.nav {
    background-color: $color;
    height: 80px;
    .logo {
        float: left;
        margin-top: 6px;
    }
    ul {
        float: right;
        li {
            float: left;
            a {
                display: block;
                width: 140px;
                height: 80px;
                line-height: 80px;
                color: #fff;
                text-align: center;
                font-size: 16px;
                span {
                    display: block;
                    color: #fff;
                    display: none;
                }
                &:hover {
                    background-color: $d_color3;
                }
            }
            &.active a {
                background-color: $d_color3;
            }
        }
    }
    .menu-lang {
        &>ul {
            display: none;
            position: absolute;
            background-color: $color;
            z-index: 9999;
        }
        & a {
            width: 150px;
        }
        &.active {
            &>ul {
                display: block;
                a {
                    background-color: transparent;
                }
            }
        }
    }
}

.section {
    padding: 60px 0;
    .stitle {
        margin-bottom: 60px;
        text-align: center;
        letter-spacing: 2px;
        h2 {
            font-size: 30px;
        }
        h3 {
            margin-top: 20px;
            font-size: 25px;
            color: $color3;
            display: none
        }
    }
}

.section-service {
    padding-bottom: 300px;
    ul {
        li {
            float: left;
            padding: 0 55px;
            width: 25%;
            text-align: center;
            font-size: 15px;
            line-height: 22px;
            letter-spacing: 2px;
            img,
            h3 {
                margin-bottom: 10px;
            }
            p {
                line-height: 18px;
                display: none;
            }
        }
    }
}

.section-aboutus {
    background-color: $color;
    .container {
        margin-top: -270px;
    }
    .content {
        border: 3px solid #fff;
        img {
            float: left;
            width: 50%;
            border-right: 3px solid #fff;
            height: 350px;
        }
        .content-right {
            float: right;
            width: 50%;
            padding: 20px 30px;
            font-size: 16px;
            line-height: 30px;
            background-color: $color;
            height: 350px;
            overflow: hidden;
            p {
                margin-bottom: 10px;
            }
        }
    }
}

.section-adv {
    ul {
        li {
            position: relative;
            float: left;
            margin-right: 40px;
            margin-bottom: 25px;
            overflow: hidden;
            img {
                width: 373px;
                height: 258px;
            }
            .dark {
                position: absolute;
                left: 0;
                right: 0;
                bottom: -70px;
                height: 70px;
                padding: 15px 15px;
                background-color: rgba(0, 0, 0, 0.6);
                overflow: hidden;
                transition: all .5s ease-in-out;
                h3 {
                    font-size: 22px;
                    color: $color3;
                }
                p {
                    margin-top: 5px;
                    font-size: 16px;
                    display: none;
                }
            }
            &:nth-child(3n) {
                margin-right: 0;
            }
            &:hover {
                .dark {
                    bottom: 0px;
                }
            }
        }
    }
}

.footer {
    background-color: $color;
    padding: 30px 0;
    font-size: 18px;
    .container>ul>li {
        float: left;
        width: 25%;
        h3 {
            margin-bottom: 30px;
            color: $color3;
            font-size: 26px;
            line-height: 40px;
            letter-spacing: 2px;
            text-align: center;
            &>span {
                display: block;
                color: #fff;
                font-size: 24px;
            }
        }
        ul {
            li {
                margin-bottom: 15px;
                line-height: 28px;
                text-align: center;
                a:hover {
                    color: $color3;
                }
                span {
                    display: block;
                }
            }
        }
        &.contactus {
            float: right;
            margin-right: 0;
            padding: 0 30px;
            p {
                line-height: 32px;
                img {
                    margin-top: 30px;
                }
            }
        }
    }
}

.inner-content {
    margin-top: 60px;
    .menu-left {
        position: absolute;
        left: 0;
        top: 0px;
        width: 200px;
        text-align: center;
        h2 {
            padding: 15px 0;
            font-size: 22px;
            background-color: $d_color3;
        }
        ul {
            margin-bottom: 30px;
            padding-bottom: 30px;
            background-color: $l_color2;
            li {
                a {
                    display: block;
                    padding: 20px 0;
                    margin: 0 30px;
                    font-size: 16px;
                    border-bottom: 1px solid #fff;
                }
                &.active,
                &:hover {
                    a {
                        color: $color3;
                    }
                }
            }
        }
        .contactus {
            padding: 10px;
            background-color: $l_color2;
            p {
                margin-top: 10px;
                text-align: left;
                line-height: 24px
            }
        }
        .btn {
            font-size: 18px;
        }
    }
    .content {
        h1 {
            font-size: 30px;
            text-align: center;
            margin-bottom: 30px;
        }
        h2 {
            display: inline-block;
            margin-bottom: 20px;
            padding: 10px 30px;
            background-color: $d_color3;
            font-size: 18px;
        }
        .desc {
            margin-bottom: 20px;
            line-height: 30px;
            font-size: 18px;
            span {
                color: red;
            }
            a {
                color: red;
                text-decoration: underline;
            }
        }
        margin-left: 200px;
        padding: 0 30px;
        min-height: 800px;
        font-size: 16px;
        line-height: 28px;
        p img {
            margin: 10px 0;
            max-width: 100%;
        }
        .list-pic {
            ul {
                li {
                    position: relative;
                    float: left;
                    margin: 0 30px 30px 0;
                    padding: 20px;
                    width: 293px;
                    height: 260px;
                    background-color: $l_color2;
                    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
                    &:nth-child(3n) {
                        margin-right: 0;
                    }
                    img {
                        margin-bottom: 10px;
                        width: 253px;
                        height: 190px;
                    }
                    a {
                        display: block;
                        font-size: 18px;
                        text-align: center;
                        &:hover {
                            color: $d_color3;
                        }
                    }
                    span {
                        display: block;
                        position: absolute;
                        right: 20px;
                        top: 20px;
                        padding: 5px;
                        background-color: rgba(0, 0, 0, .5);
                    }
                }
            }
        }
        .pages {
            margin-bottom: 30px;
            overflow: hidden;
            ul {
                li {
                    float: left;
                    a,
                    span {
                        display: block;
                        margin-right: 15px;
                        padding: 15px 20px;
                        background-color: $l_color2;
                        font-size: 18px;
                    }
                    &.active {
                        a,
                        span {
                            background-color: $d_color3;
                        }
                    }
                }
            }
        }
        .waybill {
            padding: 30px 40px 40px;
            background-color: $l_color2;
            h1 {
                font-size: 30px;
                text-align: center;
                margin-bottom: 30px;
            }
            table {
                width: 100%;
                font-size: 18px;
                td {
                    width: 50%;
                    padding: 20px;
                    border: 1px solid #fff;
                    &>a {
                        font-size: 14px;
                        font-style: oblique;
                        color: $color3;
                    }
                    form {
                        &>div,
                        &>p {
                            float: left;
                            &:first-child {
                                margin-bottom: 10px;
                            }
                            input {
                                padding: 5px;
                                font-size: 18px;
                                border-radius: 5px;
                            }
                        }
                        .btn {
                            float: right;
                        }
                    }
                }
            }
        }
        .predictor {
            h1,
            h4,
            h5,
            p,
            ul {
                margin-bottom: 15px;
            }
            h1 {
                font-size: 24px;
            }
            h4 {
                display: inline-block;
                background-color: $color3;
                color: #333;
                padding: 8px 10px;
                font-weight: bold;
            }
            h5 {
                color: $color3;
            }
            .clearfix {
                p {
                    float: left;
                    line-height: 24px;
                }
                .summary {
                    float: right;
                    padding: 15px 15px 5px;
                    margin-top: -70px;
                    width: 300px;
                    background-color: rgba(255, 255, 255, 0.5);
                    color: #000;
                    font-size: 15px;
                    &>div {
                        margin-bottom: 6px;
                        span {
                            color: red;
                            font-size: 18px;
                            vertical-align: baseline
                        }
                    }
                    .btn {
                        color: #333;
                        background-color: $d_color3;
                        border-radius: 0;
                    }
                }
            }
            .estimate {
                position: relative;
                h6 {
                    display: inline-block;
                    margin-bottom: 10px;
                    background-color: $color3;
                    color: #333;
                    padding: 8px 10px;
                    font-weight: bold;
                }
                ul {
                    display: block;
                    font-size: 12px;
                    li {
                        float: left;
                        position: relative;
                        width: 95px;
                        line-height: 1.5;
                        height: 135px;
                        border: 1px solid #ddd;
                        margin-right: -1px;
                        margin-top: -1px;
                        text-align: center;
                        img {
                            display: inline-block;
                            width: 90px;
                            max-width: 100%;
                            height: 92px;
                        }
                        div {
                            text-align: center;
                            height: 40px;
                            line-height: 20px;
                            background: $l_color2;
                            i {
                                display: block;
                                color: #aaa;
                            }
                        }
                        a {
                            &.qty {
                                display: block;
                                position: absolute;
                                width: 30px;
                                height: 30px;
                                line-height: 30px;
                                font-size: 14px;
                                font-weight: bold;
                                right: 8px;
                                top: 8px;
                                border: 2px solid #fe8332;
                                background: #fe9c5b;
                                color: #fff;
                                text-decoration: none;
                                border-radius: 17px;
                                display: none;
                            }
                            &.info {
                                display: block;
                                position: absolute;
                                right: 10px;
                                top: 10px;
                                width: 30px;
                                height: 30px;
                                background: $color3;
                                border-radius: 100%;
                                line-height: 30px;
                                color: #fff;
                                font-size: 20px;
                            }
                            &.plus,
                            &.minus {
                                display: block;
                                position: absolute;
                                bottom: 0;
                                width: 16px;
                                height: 16px;
                                background: $color3;
                                cursor: pointer;
                                text-decoration: none;
                                color: #fff;
                                font-weight: bold;
                                line-height: 16px;
                                text-align: center;
                            }
                            &.plus {
                                right: 0;
                            }
                            &.minus {
                                left: 0;
                            }
                        }
                    }
                }
            }
            .list-pred {
                margin-bottom: 30px;
                ul {
                    width: 90px*10+1px;
                    border-top: 1px solid #fff;
                    border-left: 1px solid #fff;
                    li {
                        float: left;
                        width: 90px;
                        height: 130px;
                        text-align: center;
                        border-right: 1px solid #fff;
                        border-bottom: 1px solid #fff;
                        overflow: hidden;
                        span {
                            position: relative;
                            display: block;
                            padding-top: 5px;
                            height: 40px;
                            background-color: lighten($color2, 10);
                            font-size: 12px;
                            i {
                                display: block;
                                margin-top: 3px;
                            }
                        }
                    }
                }
            }
        }
        .inquiry {
            padding: 25px;
            background-color: $l_color2;
            .inner {
                border: 1px solid #fff;
                padding: 30px;
            }
            table {
                width: 100%;
                font-size: 18px;
                td {
                    padding: 12px;
                    font-size: 0;
                    * {
                        font-size: 18px;
                    }
                    label {
                        display: inline-block;
                        width: 100px;
                        vertical-align: top;
                        i {
                            color: red;
                        }
                    }
                    input,
                    select,
                    textarea {
                        margin-right: 5px;
                        padding: 2px;
                        width: 180px;
                        border-radius: 0;
                        vertical-align: middle;
                        &.x2 {
                            width: 365px;
                        }
                    }
                    .btn {
                        padding: 20px 100px;
                        border-radius: 100px
                    }
                }
            }
            .desc {
                a {
                    text-decoration: underline;
                }
            }
        }
    }
}